﻿@model IEnumerable<ApiPrototype.Models.BB_MEDEDELING>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            MED_ID
        </th>
        <th>
            OLOD
        </th>
        <th>
            MED_ONDERWERP
        </th>
        <th>
            MED_INHOUD
        </th>
        <th>
            MED_BESCHIKBAAR
        </th>
        <th>
            MED_DATUM
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.MED_ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OLOD.OLO_OMSCHRIJVING)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MED_ONDERWERP)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MED_INHOUD)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MED_BESCHIKBAAR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MED_DATUM)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
